<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SkyGameEngine2d: SkyEngine2d::Rect类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="shpe.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SkyGameEngine2d
   &#160;<span id="projectnumber">1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>SkyEngine2d</b></li><li class="navelem"><a class="el" href="class_sky_engine2d_1_1_rect.html">Rect</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="#pub-static-attribs">静态 Public 属性</a> &#124;
<a href="class_sky_engine2d_1_1_rect-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">SkyEngine2d::Rect类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>矩形  
 <a href="class_sky_engine2d_1_1_rect.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_math_8h_source.html">Math.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a0dd2aef9a413ed9ca653e0a59bfde26c"><td class="memItemLeft" align="right" valign="top"><a id="a0dd2aef9a413ed9ca653e0a59bfde26c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Rect</b> (float x, float y, float width, float height)</td></tr>
<tr class="separator:a0dd2aef9a413ed9ca653e0a59bfde26c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a740b19cee3022d0eac80bc3f145fe541"><td class="memItemLeft" align="right" valign="top"><a id="a740b19cee3022d0eac80bc3f145fe541"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Rect</b> (float x, float y, const <a class="el" href="class_sky_engine2d_1_1_size.html">Size</a> &amp;size)</td></tr>
<tr class="separator:a740b19cee3022d0eac80bc3f145fe541"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59a64ac650ac3407f56d015de07d624e"><td class="memItemLeft" align="right" valign="top"><a id="a59a64ac650ac3407f56d015de07d624e"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Rect</b> (<a class="el" href="class_sky_engine2d_1_1_vector2.html">Vector2</a> pos, const <a class="el" href="class_sky_engine2d_1_1_size.html">Size</a> &amp;size)</td></tr>
<tr class="separator:a59a64ac650ac3407f56d015de07d624e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73c92f4e39cefda0775db48a13c72537"><td class="memItemLeft" align="right" valign="top"><a id="a73c92f4e39cefda0775db48a13c72537"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Rect</b> (const <a class="el" href="class_sky_engine2d_1_1_rect.html">Rect</a> &amp;rect)</td></tr>
<tr class="separator:a73c92f4e39cefda0775db48a13c72537"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f7c455e4ea1a6abd6a5321c76eced32"><td class="memItemLeft" align="right" valign="top"><a id="a3f7c455e4ea1a6abd6a5321c76eced32"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>move</b> (const <a class="el" href="class_sky_engine2d_1_1_vector2.html">Vector2</a> &amp;dt)</td></tr>
<tr class="separator:a3f7c455e4ea1a6abd6a5321c76eced32"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7fbd8aa8d46bf1749e52b0a60d3287b"><td class="memItemLeft" align="right" valign="top"><a id="ac7fbd8aa8d46bf1749e52b0a60d3287b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>move</b> (float x_dt, float y_dt)</td></tr>
<tr class="separator:ac7fbd8aa8d46bf1749e52b0a60d3287b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3eb038b8bd11317376591ecb17377323"><td class="memItemLeft" align="right" valign="top"><a id="a3eb038b8bd11317376591ecb17377323"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>moveTo</b> (const <a class="el" href="class_sky_engine2d_1_1_vector2.html">Vector2</a> &amp;pos)</td></tr>
<tr class="separator:a3eb038b8bd11317376591ecb17377323"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac57cdaad5701dd0eb3e35d609a0ecdbd"><td class="memItemLeft" align="right" valign="top"><a id="ac57cdaad5701dd0eb3e35d609a0ecdbd"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>moveTo</b> (float pos_x, float pos_y)</td></tr>
<tr class="separator:ac57cdaad5701dd0eb3e35d609a0ecdbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c12aadb69d38368de0ef9a60d593888"><td class="memItemLeft" align="right" valign="top"><a id="a2c12aadb69d38368de0ef9a60d593888"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>pointOnRect</b> (const <a class="el" href="class_sky_engine2d_1_1_vector2.html">Vector2</a> &amp;point) const</td></tr>
<tr class="separator:a2c12aadb69d38368de0ef9a60d593888"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8ad708b19de85f7f928f36045c4409f"><td class="memItemLeft" align="right" valign="top"><a id="ab8ad708b19de85f7f928f36045c4409f"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>intersectWithLine</b> (const <a class="el" href="class_sky_engine2d_1_1_line.html">Line</a> &amp;line) const</td></tr>
<tr class="separator:ab8ad708b19de85f7f928f36045c4409f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2237e0c81d51aed6828f4ec83c9f84fc"><td class="memItemLeft" align="right" valign="top"><a id="a2237e0c81d51aed6828f4ec83c9f84fc"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>intersectsWithRect</b> (const <a class="el" href="class_sky_engine2d_1_1_rect.html">Rect</a> &amp;rect) const</td></tr>
<tr class="separator:a2237e0c81d51aed6828f4ec83c9f84fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74d6c9eeffe6f22594a287ff9cf6cca9"><td class="memItemLeft" align="right" valign="top"><a id="a74d6c9eeffe6f22594a287ff9cf6cca9"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator==</b> (const <a class="el" href="class_sky_engine2d_1_1_rect.html">Rect</a> &amp;r)</td></tr>
<tr class="separator:a74d6c9eeffe6f22594a287ff9cf6cca9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4d7bc8708396bc3bbaacf1420c82243"><td class="memItemLeft" align="right" valign="top"><a id="ac4d7bc8708396bc3bbaacf1420c82243"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>operator D2D1_RECT_F</b> ()</td></tr>
<tr class="separator:ac4d7bc8708396bc3bbaacf1420c82243"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:ac0541fde9aedee426f95cdb692342fe5"><td class="memItemLeft" align="right" valign="top"><a id="ac0541fde9aedee426f95cdb692342fe5"></a>
<a class="el" href="class_sky_engine2d_1_1_size.html">Size</a>&#160;</td><td class="memItemRight" valign="bottom"><b>size</b></td></tr>
<tr class="separator:ac0541fde9aedee426f95cdb692342fe5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb9cb2f5553a0392527d4ae594e41bec"><td class="memItemLeft" align="right" valign="top"><a id="abb9cb2f5553a0392527d4ae594e41bec"></a>
<a class="el" href="class_sky_engine2d_1_1_vector2.html">Vector2</a>&#160;</td><td class="memItemRight" valign="bottom"><b>origin</b></td></tr>
<tr class="separator:abb9cb2f5553a0392527d4ae594e41bec"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
静态 Public 属性</h2></td></tr>
<tr class="memitem:a45610aa84100ff91ee9fedfe96fdbfb8"><td class="memItemLeft" align="right" valign="top"><a id="a45610aa84100ff91ee9fedfe96fdbfb8"></a>
static <a class="el" href="class_sky_engine2d_1_1_rect.html">Rect</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Zero</b></td></tr>
<tr class="separator:a45610aa84100ff91ee9fedfe96fdbfb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>矩形 </p>
</div><hr/>该类的文档由以下文件生成:<ul>
<li>C:/code/SkyGameEngine2d/src/base/<a class="el" href="_math_8h_source.html">Math.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
